package yh;

/**
 * 逻辑运算符&和&&的区别，|和||区别
 */
public class LogicalOperator2 {
    public static void main(String[] args) {
        int i=1;
        int j=0;
        //System.out.println(i*j==1 & i/j==0);  //报错
        System.out.println(i*j==1 && i/j==0);
        //System.out.println(i*j==1 | i/j==0);    //报错
        System.out.println(i*j==1 || i/j==0);
    }
}
